package cd.cdyb.sms.controller.base;


import java.io.Serializable;


public class SimpleVo<T> implements Serializable {

    private static final long serialVersionUID = -4139646494152202139L;

    /**
     * 返回状态
     */
    private int code = 0;

    /**
     * 错误信息
     */
    private String msg;

    /**
     * 返回数据
     */
    private T data;

    public SimpleVo() {
    }

    public SimpleVo(T data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
